//
//  AXFNavigationController.m
//  爱鲜蜂
//
//  Created by HH on 16/11/6.
//  Copyright © 2016年 胡浩. All rights reserved.
//

#import "AXFNavigationController.h"
#import <objc/runtime.h>
//#import "UINavigationBar+AXFBarColor.h"

@interface AXFNavigationController ()

@end

@implementation AXFNavigationController

//_UIBarBackground
//_UINavigationBarBackIndicatorView
- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.navigationBar.titleTextAttributes = @{NSForegroundColorAttributeName:[UIColor blackColor]};
    
    self.navigationBar.barTintColor = [UIColor cz_colorWithHex:0xffd600];
    
    
    
}

- (void)viewDidAppear:(BOOL)animated
{
    [super viewDidAppear:animated];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated
{
    //隐藏底部标签栏
    if (self.viewControllers.count > 0) {
        self.navigationBar.hidden = YES;
        
        viewController.hidesBottomBarWhenPushed = YES;
    }
    
    [super pushViewController:viewController animated:animated];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
